/*
 * joinImageTopic.cpp
 *
 *  Created on: Nov 9, 2012
 *      Author: Matthijs
 */

#include <camera/camera.h>

/**
 *	Open capture devices
 */
void Camera::joinImageTopic (ros::NodeHandle nh)
{
	ROS_INFO("Joining image topic.");
	image_transport::ImageTransport it(nh);
	image_transport::Subscriber img0_sub = it.subscribe("/camera0_img", 1, & Camera::parseImageLeft,  this);
	image_transport::Subscriber img1_sub = it.subscribe("/camera1_img", 1, & Camera::parseImageRight, this);
	ros::spin();
}


